package io.bdmc.modules.bss.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.DeviceMachineOsModule;
import io.bdmc.modules.bss.mapper.DeviceMachineOsModuleMapper;
import io.bdmc.modules.bss.service.IDeviceMachineOsModuleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 黄露
 * @since 2021-06-02
 */
@Service
public class DeviceMachineOsModuleServiceImpl extends ServiceImpl<DeviceMachineOsModuleMapper, DeviceMachineOsModule> implements IDeviceMachineOsModuleService {
    @Autowired
    DeviceMachineOsModuleMapper _devicemachineosmoduleMapper;

    @Override
    public MyPage<DeviceMachineOsModule> mySelectPage(MyPage<DeviceMachineOsModule> myPage) {
        return _devicemachineosmoduleMapper.mySelectPage(myPage);
    }

    @Override
    public List<DeviceMachineOsModule> selectByMachineOsId(Integer machineOsId) {
        QueryWrapper<DeviceMachineOsModule> w1 = new QueryWrapper<>();
        w1.eq("machine_os_id",machineOsId);
        return list(w1);
    }


}
